<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "home";
$route['404_override'] = '';


$route['about'] = "home/about";
$route['sitemap'] = "home/sitemap";
$route['contact'] = "home/contact";
$route['contact/send'] = "home/contact_send";
$route['directory'] = "home/directory";
$route['gold'] = "home/gold";
$route['gold/register'] = "home/gold/register";
$route['agent'] = "home/agent";
$route['banner'] = "home/banner";
$route['banner/send'] = "home/banner_send";
$route['technology'] = "home/technology";
$route['technology/(:num)'] = "home/technology/$1";
$route['subscribe'] = "home/subscribe";
$route['subscribe/register'] = "home/subscribe_register";
$route['subscribe/email_existed'] = "home/subscribe_email_existed";
$route['subscribe/confirm/(:any)'] = "home/subscribe_confirm/$1";
$route['paid-form'] = "home/paid_form";
$route['paid-form/send'] = "home/paid_form_send";
$route['search'] = "home/search";

$route['user/register/step2'] = "user/register_step2";
$route['user/register/step3'] = "user/register_step3";
$route['user/register/confirm/(:any)'] = "user/register_confirm/$1";
$route['user/forgotpass/send'] = "user/forgotpass_send";
$route['user/forgotpass/confirm/(:any)'] = "user/forgotpass_confirm/$1";
$route['user/email-confirm'] = "user/email_confirm";
$route['user/email-confirm/send'] = "user/email_confirm_send";
$route['user/update'] = "user/update";
$route['user/website'] = "user/build_website";
$route['user/website/save'] = "user/build_website_save";
$route['site/(:num)'] = "user/user_website/$1";
$route['site/(:num)/(:any)'] = "user/user_website/$1";

$route['category'] = "home/directory";
$route['category/(:any)/(:any)'] = "home/category_company/$1/$2";
$route['category/(:any)'] = "home/category/$1";

$route['agent/(:num)'] = "home/agent/$1";

$route['admin/categories/add/process'] = "admin/categories/add_process";
$route['admin/categories/edit/process'] = "admin/categories/edit_process";
$route['admin/technology/add/process'] = "admin/technology/add_process";
$route['admin/technology/edit/process'] = "admin/technology/edit_process";
$route['admin/banner/add'] = "admin/banner/add";
$route['admin/banner/add/process'] = "admin/banner/add_process";
$route['admin/banner/edit'] = "admin/banner/edit";
$route['admin/banner/edit/process'] = "admin/banner/edit_process";
$route['admin/banner/status/(:num)'] = "admin/banner/status/$1";

$route['admin/banner/position'] = "admin/banner/position";
$route['admin/banner/position/add'] = "admin/banner/position_add";
$route['admin/banner/position/add/process'] = "admin/banner/position_add_process";
$route['admin/banner/position/edit'] = "admin/banner/position_edit";
$route['admin/banner/position/edit/process'] = "admin/banner/position_edit_process";
$route['admin/banner/message'] = "admin/banner/message";
$route['admin/banner/message/process'] = "admin/banner/message_edit_process";

$route['admin/member/edit/process'] = "admin/member/edit_process";
$route['admin/member/message'] = "admin/member/message";
$route['admin/member/message/process'] = "admin/member/message_edit_process";

/* End of file routes.php */
/* Location: ./application/config/routes.php */